<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<jsp:directive.page import="com.database.DataBase"/>
<jsp:directive.page import="com.sql.ReportFormSql"/>
<html>
  <head>
    <title>My JSP 'adminUserDelete.jsp' starting page</title>
  </head>
  <body>
      <% 
            int adminid=Integer.parseInt(request.getParameter("adminid"));
            DataBase base=new DataBase();
         
         
            String sql="delete from CQMS_User where AdminID="+adminid;
            System.out.println("sql -"+sql);
            base.executeUpdate(sql);
            base.closeStmt();
            base.closeConn();
            response.sendRedirect("adminUser.jsp");
      %>
  </body>
</html>
